#include "tcpClient.hpp"
#include <memory>
static void Usage(std::string proc)
{
    std::cout << "Usage:\n\t" << proc << " server_ip server_port\n\n";
}
//./tcpClient serverIp serverPort
int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        Usage(argv[0]);
        exit(1);
    }
    std::string serverIp = argv[1];
    uint16_t serverPort = std::stoi(argv[2]);
    std::unique_ptr<TcpClient> tcli(new TcpClient(serverIp, serverPort));
    tcli->InitClient();
    tcli->Start();
    return 0;
}